package com.scvtc.runner;

import com.scvtc.utils.DictionaryUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @Description: 数据字典加载
 * @Author: yiFei
 * @date: 2022/5/13 11:03
 */
@Component
public class DictionaryRunner implements CommandLineRunner {

    @Autowired
    private DictionaryUtil dictionaryUtil;

    @Override
    public void run(String... args) {
        dictionaryUtil.refreshDictionary();
    }
}
